package com.itheima.io.bufferedinputstream.demo02;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;

public class BufferedInputStreamDemo02 {

    public static void main(String[] args) throws IOException {

        BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream("itheima-io-bufferedinputstream\\a.txt"));

        int by = bufferedInputStream.read();
        System.out.println(by);

        by = bufferedInputStream.read();
        System.out.println(by);
        System.out.println((char) by);

        bufferedInputStream.close();

    }


}
